import About from "../pages/About"
import Home from "../pages/Home"
import News from "../pages/News"
import Message from "../pages/Message"
import Test from "../pages/Test"
import One from "../pages/One"
import { Navigate } from "react-router-dom"

// eslint-disable-next-line import/no-anonymous-default-export
export default [
  {
    path:'/',
    element:<Navigate to='/about' />
  },
  {
    path:'/about',
    element:<About />,
    children:[
      // {
      //   path:'message',
      //   element:<Message />
      // },
      // {
      //   path:'news',
      //   element:<News />
      // },
      {
        path:'test',
        element:<Test />
      }
    ]
  },
  {
    path:'/home',
    element:<Home />,
    children:[
      {
        path:'message',
        element:<Message />,
        children:[
          {
            path:'one',
            element:<One/>
          }
        ]
      },
      {
        path:'news',
        element:<News />
      },
      {
        path:'test',
        element:<Test />
      }
    ]
  }
  
]